Collecting data from the medical record